<rules>
  <rule id="Common.Core.1008" category="core" specificationsection ="2.2.8.1.2" requirementlevel="must" format="json" target="error">
    <description>JSON Error Response format MUST be used in response payloads representing top-level errors.</description>
    <action processor="jsonschema" >
      <jsonschema>
        {
        "additionalProperties" : false,
        "type" : "object",
        "properties" : {

        "error" : {
        "additionalProperties" : false,
        "type" : "object",
        "properties" : {

        "code" : { "type" : "any", "required" : true },
        "message" : { "type" : "any", "required" : true },
        "innererror" : { "type" : "any", "required" : false },

        }
        }

        }
        }
      </jsonschema>
    </action>
    <errormessage>JSON Error Response format MUST be used in response payloads representing top-level errors.</errormessage>
  </rule>
</rules>